package com.fg.cloud.common.construction;

import java.io.Serializable;

/**
 * Description:包装前端需要的Map-data
 * @author around
 * @date 2017年8月21日上午11:16:02
 */
public class ResultMap implements Serializable {

	private static final long serialVersionUID = 8873815800859164841L;

	private String label;
	
	private Object value;
	
	public ResultMap() {}

	public ResultMap(String label) {
		super();
		this.label = label;
	}
	
	public ResultMap(String label, Object value) {
		super();
		this.label = label;
		this.value = value;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}
	
	@Override
	public boolean equals(Object obj) {
		return this.getLabel().equals(((ResultMap)obj).getLabel());
	}

	@Override
	public String toString() {
		return "ResultMap [label=" + label + ", value=" + value + "]";
	}
	
	
}
